package com.wdj.creation.builder;

import com.wdj.creation.builder.builder.ActorBuilder;
import com.wdj.creation.builder.builder.DevilBuilder;
import com.wdj.creation.builder.entity.Actor;

/**
 * @ClassName Client
 * @Description
 * @Author wdj
 * @Date 2020/12/7 21:48
 * @Version 1.0
 **/
public class Client {

    public static void main(String[] args) {

//        Actor actor = actorController.construct(new HeroBuilder());
//        Actor actor = actorController.construct(new AngleBuilder());
        Actor actor = ActorBuilder.construct(new DevilBuilder());
        System.out.println(actor.getType());
        System.out.println(actor.getSex());
        System.out.println(actor.getFace());
        System.out.println(actor.getCostume());
        System.out.println(actor.getHairsytle());
    }
}
